11. Exercise: Initialize a Path Object
22 11 AAK Path SC V2
Android Developer Documentation
Exercise
In this exercise you are going to initialize a Path object.
- In
MyCanvasView, add a variablepathand initialize it with aPathobject to store the path that is being drawn when following the user's touch on the screen. Importandroid.graphics.Pathfor thePath.
private var path = Path()